Package io.realm.kotlin.mongodb.sync

Types

BaseSubscriptionSet
Link copied to clipboard
interface BaseSubscriptionSet : Iterable<Subscription>
Base interface for shared functionality between SubscriptionSet and MutableSubscriptionSet.
DiscardUnsyncedChangesStrategy
Link copied to clipboard
interface DiscardUnsyncedChangesStrategy : SyncClientResetStrategy
Strategy that automatically resolves a Client Reset by discarding any unsynced local data but otherwise keeps the realm open.
InitialRemoteDataConfiguration
Link copied to clipboard
data class InitialRemoteDataConfiguration(timeout: Duration)
Configuration options if SyncConfiguration.Builder.waitForInitialRemoteData is enabled.
InitialSubscriptionsCallback
Link copied to clipboard
fun fun interface InitialSubscriptionsCallback
Callback used to populate the initial SubscriptionSet when opening a Realm.
InitialSubscriptionsConfiguration
Link copied to clipboard
data class InitialSubscriptionsConfiguration(callback: InitialSubscriptionsCallback, rerunOnOpen: Boolean)
Configuration options if SyncConfiguration.Builder.initialSubscriptions is enabled.
ManuallyRecoverUnsyncedChangesStrategy
Link copied to clipboard
Strategy to manually resolve a Client Reset.
MutableSubscriptionSet
Link copied to clipboard
interface MutableSubscriptionSet : BaseSubscriptionSet
A mutable subscription set makes it possible to add, remove or modify a SubscriptionSet.
Subscription
Link copied to clipboard
interface Subscription
A subscription defines a specific server query and its metadata.
SubscriptionSet
Link copied to clipboard
interface SubscriptionSet<T : BaseRealm> : BaseSubscriptionSet
A subscription set is an immutable view of all current Subscriptions for a given Realm that has been configured for Flexible Sync.
SubscriptionSetState
Link copied to clipboard
enum SubscriptionSetState : Enum<SubscriptionSetState>
The possible states a SubscriptionSet or MutableSubscriptionSet can be in.
SyncClientResetStrategy
Link copied to clipboard
interface SyncClientResetStrategy
Interface that defines a generic sync client reset strategy.
SyncConfiguration
Link copied to clipboard
interface SyncConfiguration : Configuration
A SyncConfiguration is used to setup a Realm Database that can be synchronized between devices using Atlas Device Sync.
SyncMode
Link copied to clipboard
enum SyncMode : Enum<SyncMode>
This enum determines how Realm sync data with the server.
SyncSession
Link copied to clipboard
interface SyncSession
A session controls how data is synchronized between a single Realm on the device and MongoDB on the server.

Functions

asQuery
Link copied to clipboard
inline fun <T : RealmObject> Subscription.asQuery(): RealmQuery<T>
Converts the Subscription.queryDescription back to a RealmQuery that can be executed against the local Realm.